package org.dromara.merchants.service;

import org.dromara.merchants.domain.TaAssociation;
import org.dromara.merchants.domain.vo.TaAssociationVo;
import org.dromara.merchants.domain.bo.TaAssociationBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 关联Service接口
 *
 * @author xiyin321
 * @date 2024-07-08
 */
public interface ITaAssociationService {

    /**
     * 查询关联
     */
    TaAssociationVo queryById(Long associationId);

    /**
     * 查询关联列表
     */
    TableDataInfo<TaAssociationVo> queryPageList(TaAssociationBo bo, PageQuery pageQuery);

    /**
     * 查询关联列表
     */
    List<TaAssociationVo> queryList(TaAssociationBo bo);

    /**
     * 新增关联
     */
    Boolean insertByBo(TaAssociationBo bo);

    /**
     * 修改关联
     */
    Boolean updateByBo(TaAssociationBo bo);

    /**
     * 校验并批量删除关联信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
